package org.mm.xml;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import org.mm.xml.entities.SensorXML;


/**
 * SensorResponseXML: per recuperare tutti
 * i sensori di un paziente
 *
 * @author Marco Traversari
 * @version $Revision: $ $Date: $ $Author: $
 */
@XmlRootElement(name = "response")
public class SensorResponseXML extends PatientResponseXML  {

	private List<SensorXML> sensors = null;


	/**
	 * getSensors
	 * @return sensors
	 */
	@XmlElementWrapper(name = "sensors")
	@XmlElement(name = "sensor")
	public List<SensorXML> getSensors() {
		return sensors;
	}


	/**
	 * setSensors
	 * @param sensors
	 */
	public void setSensors(List<SensorXML> sensors) {
		this.sensors = sensors;
	}


	public void clear() {
		patient = null;
		sensors = null;

	}


}
